package example.com.dynamicproxy;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.webkit.WebView;

public class OtherActivity extends Activity {
    private String mTag="OtherActivity";
   private WebView webView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.v(mTag,"onCreate");
        setContentView(R.layout.activity_other);
        webView = (WebView)findViewById(R.id.webView);

        findViewById(R.id.btn).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(OtherActivity.this,MainActivity.class));
            }
        });

    }

    @Override
    protected void onResume() {
        super.onResume();
        Log.v(mTag,"onResume");
    }

    @Override
    protected void onStart() {
        super.onStart();
        Log.v(mTag,"onStart");
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        Log.v(mTag,"onRestart");
    }

    @Override
    protected void onPause() {
        super.onPause();
        Log.v(mTag,"onPause");
    }

    @Override
    protected void onStop() {
        super.onStop();
        Log.v(mTag,"onStop");
    }

    @Override
    protected void onDestroy() {
        Log.v(mTag,"onDestroy");
        super.onDestroy();

    }
}
